package cn.edu.zut.model;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class BorrowBook{

    private String readerId;
    private int bookId;
    private Date borrowDate;
    private Date shouldReturn;
    private Date returnDate;
    float fine;
    int flag;

    public String getReaderId() {
        return readerId;
    }

    public void setReaderId(String readerId) {
        this.readerId = readerId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getShouldReturn() {
        return shouldReturn;
    }

    public void setShouldReturn(Date shouldReturn) {
        this.shouldReturn = shouldReturn;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public float getFine() {
        return fine;
    }

    public void setFine(float fine) {
        this.fine = fine;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {

        return "["+"readerId:"+readerId+""+"bookId:"+bookId+" "+"borrowDate:"+borrowDate
                +""+"shouldReturn:"+shouldReturn+" "+"returnDate:"+returnDate
                +" "+"fine:"+fine+" "+"flag:"+flag+"]";
    }
}
